Component({
  options: {},
  /**
   * 组件的属性列表
   */
  properties: {
    // 数据源
    itemObj: {
      type: Object,
    },
    // 序号
    index: {
      type: Number,
      value: null,
    },
    keyword: {
      type: String,
      value: "",
    },
    showPhone: {
      type: Boolean,
      value: true,
    },
    showDis: {
      type: Boolean,
      value: true,
    },
    nameType: {
      type: String,
      value: "1",
    },
    showGz: {
      type: Boolean,
      value: false,
    },
    
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    dealGuanzhu(e) {
      this.triggerEvent("dealGuanzhu", e.currentTarget.dataset.id);
    },
    // 跳转到详情页面
    toprodetail(e) {
      const obj = {
        credit: e.currentTarget.dataset.credit,
        name1: e.currentTarget.dataset.name1,
        name2: e.currentTarget.dataset.name2,
      }
      this.triggerEvent("toprodetail", obj);
    },
  },
});
